import React from "react"
import './index.scss'
export default (props)=>{
        const {addressDetail,amount,productDesc,unit,price,productTitle} = props.dataSource
        return <div className='buy-item'>
                <div className="line">
                        <div className="title">
                                <span className="tag">求</span>
                                <span className="name">{productTitle}</span>
                        </div>
                        <div className="price">￥{price}元/{['','公斤','吨'][unit]}</div>
                </div>
                <div className="line">
                        <div className="text-line-item">
                                <div className="label">数量</div>
                                <div className="text">{amount}{['','公斤','吨'][unit]}</div>
                        </div>
                        <div className="text-line-item">
                                <div className="label">交货地</div>
                                <div className="text">{addressDetail}</div>
                        </div>
                </div>
                <div className="line">
                        <div className="text-line-item">
                                <div className="label">要求</div>
                                <div className="text">{productDesc}</div>
                        </div>
                </div>
        </div>
}
